home *** CD-ROM | disk | FTP | other *** search
- //
- //
- // false --> n = 0
- //
- // true --> n <> 0
- //
- // Internet Kit
- //
- // Homepage "http://www.umn.edu/adcs"
- // news server "news.tc.umn.edu"
- // SMTP server "smtp-gw.tc.umn.edu"
- //
- // AddFolderIcon( FOLDER_DRSKTOP ^ "EARL"
- //
-
- #define xForceError_TCPIPInstalled 0
- #define xForceError_DialUpNetworkingInstalled 0
-
-
- #define Z_OurPN "Internet Toolkit"
- #define Z_VERSION "4.1"
- #define Z_PRODUCT_KEY "product.exe"
- #define Z_UNINST_KEY "key"
- #define Z_UNINST_DISPLAY_NAME "U of M Internet Toolkit"
-
- #define C_IE "Internet Explorer"
- #define C_NS "Netscape"
-
- // From WIKDLL.H and WINUSER.H
-
- #define IDD_WELCOME 10205
- #define MY_SW_SHOWNORMAL 1
- #define MB_YESNO 4
- #define IDOK 1
- #define IDCANCEL 2
- #define IDABORT 3
- #define IDRETRY 4
- #define IDIGNORE 5
- #define IDYES 6
- #define IDNO 7
-
- #define INOUT
-
- // Windows Messages
-
- #define WM_SYSCOMMAND 0x0112
- #define SC_MINIMIZE 0xF020
- #define SC_MAXIMIZE 0xF030
-
-
- #define procedure function
- #define not !
- #define and &&
- #define NE !=
- #define or ||
- #define var BYREF
-
-
-
-
- // DLL Prototypes
-
- prototype WIKDLL.WIKIsThereAModem ( STRING );
- prototype WIKDLL.SetupConnection ( STRING, STRING, STRING );
-
-
- // Function Prototypes
-
- prototype InitVars();
- prototype Setup_RunOnce ();
- prototype OurMoveFileData();
- prototype OurProcessBeforeDataMove();
- prototype OurProcessAfterDataMove();
- prototype OurSetupRegistry();
- prototype OurSetupFolders();
- prototype OurSetupInstall();
- prototype OurSetupScreen();
- prototype OurCheckRequirements();
- prototype OurDialogShowSdWelcome();
- prototype OurDialogShowSdLicense();
- prototype OurDialogShowSdSelectFolder();
-
-
- prototype IsSys ( NUMBER );
- prototype NWarn ( STRING, NUMBER );
- prototype LaunchHelp ( STRING );
- prototype Abort_Missing ( STRING, STRING );
- prototype CSetVisible_9x ( STRING );
- prototype CSetVisible_NT ( STRING );
- prototype KeyExists ( STRING );
- prototype Warn ( STRING );
- prototype AbortM ( STRING );
- prototype SelItemT ( STRING );
- prototype SelItemF ( STRING );
- prototype SetAskTitle ( STRING );
- prototype CSelected ( STRING );
-
- prototype OurHandleMoveDataError( NUMBER );
-
- prototype Is95 ();
- prototype Is98 ();
- prototype IsNT ();
-
- prototype MainProg ();
- prototype SelComponents ();
- prototype OurShowDialogs ();
- prototype SetDefaultRoot ();
- prototype TCPIPInstalled ();
- prototype InstallComponents ();
- prototype DlgConnectionType ();
- prototype OurCleanUpInstall ();
- prototype CreateModemConnectionIcon ();
- prototype DialUpNetworkingInstalled ();
- prototype Setup_Network_TCPIP_Control_Panel ();
-
-
- prototype CSetVis ( STRING, BOOL );
- prototype VOK_0 ( NUMBER, STRING );
- prototype VOK_1 ( NUMBER, STRING );
-
- prototype Nxt( var NUMBER, NUMBER );
-
- prototype DBSet_STRING ( var BOOL, STRING, STRING, STRING );
- prototype DBSet_BINARY ( var BOOL, STRING, STRING, STRING );
- prototype MakeBinaryString (var STRING, NUMBER,NUMBER,NUMBER,NUMBER);
-
-
- prototype CallInstallerWait ( STRING, STRING, STRING );
- prototype CallInstallerNoWait ( STRING, STRING, STRING );
-
-
-
- #include "sdlang.h"
- #include "sddialog.h"
-
-
- #define UNINST_LOGFILE_NAME "Uninst.isu"
-
- //
- // 20 August 1999
- //
- //
- // globals
- //
- STRING svSetupType;
- BOOL ModemConn;
-
- program
- MainProg();
- endprogram
-
- #include "sddialog.rul"
-
-
-
- //==========================================================================
-
- procedure MainProg()
- NUMBER nResult;
- begin
- Disable( BACKGROUND );
- InitVars();
- OurCheckRequirements ();
- OurSetupInstall ();
- OurShowDialogs ();
- OurProcessBeforeDataMove ();
-
- nResult = OurMoveFileData ();
- if nResult >= 0 then
- nResult = DeinstallSetReference( TARGETDIR ^ Z_PRODUCT_KEY );
- endif;
-
- if nResult >= 0 then
- nResult = CreateRegistrySet ( "" );
- nResult = CreateShellObjects( "" );
- InstallComponents();
- endif;
- end;
-
-
- procedure InitVars()
- begin
- ModemConn = TRUE;
- TARGETDIR = "c:\\internet";
- svSetupType = ""; // first as default
- end;
-
-
-
- function Is95()
- BOOL R;
- NUMBER n;
- STRING s;
- begin
- R = IsSys( IS_WINDOWS9X );
- if R then
- GetSystemInfo ( WINMINOR, n, s );
- R = (n < 10);
- endif;
- end;
-
- function Is98()
- BOOL R;
- NUMBER n;
- STRING s;
- begin
- R = IsSys( IS_WINDOWS9X );
- if R then
- GetSystemInfo ( WINMINOR, n, s );
- R = (n >= 10);
- endif;
- end;
-
- function IsNT()
- begin
- return IsSys( IS_WINDOWSNT );
- end;
-
-
- procedure OurCheckRequirements()
- NUMBER nvDx, nvDy, nvResult;
- STRING svResult;
- BOOL bIsWindowsNT4, bIsWindowsNT351, bIsWindows98, bIsWindows95;
- BOOL bIs32BitSetup;
- begin
- GetExtents( nvDx, nvDy );
- if nvDy < 480 then
- AbortM( "Installation requires VGA or better resolution." );
- endif;
-
-
- bIsWindowsNT4 = FALSE;
- bIsWindowsNT351 = FALSE;
- bIsWindows95 = Is95();
- bIsWindows98 = Is98();
-
- GetSystemInfo( ISTYPE, nvResult, svResult );
- bIs32BitSetup = (nvResult = 32);
- if bIs32BitSetup then
- if IsNT() then
- if GetSystemInfo( WINMAJOR, nvResult, svResult ) = 0 then
- if nvResult >= 4 then
- bIsWindowsNT4 = TRUE;
- else
- AbortM( "Windows NT 3.5 not supported." );
- bIsWindowsNT351 = TRUE;
- endif;
- endif;
- endif;
- else
- AbortM( "Installation requires Windows 95 or greater." );
- endif;
- end;
-
-
- procedure OurSetupInstall()
- begin
- Enable( CORECOMPONENTHANDLING );
- SdProductName( Z_OurPN );
- Enable( DIALOGCACHE );
- Enable( FULLWINDOWMODE );
- Enable( INDVFILESTATUS );
- SetTitle( " University of Minnesota " +
- Z_OurPN + " " + Z_VERSION, 24, WHITE );
- SetTitle( "", 0, BACKGROUNDCAPTION );
- Enable( BACKGROUND );
- Delay( 1 );
- end;
-
-
- procedure Nxt( n, r )
- begin
- if r = BACK then
- n = n - 1;
- else
- n = n + 1;
- endif;
- end;
-
- procedure OurShowDialogs()
- NUMBER n, r;
- STRING t;
- begin
- n = 1;
- repeat
- if n <= 1 then
- t =
- "Welcome to the " + Z_OurPN + " Setup program. " +
- "This program will install the " +
- Z_OurPN + " on your computer.";
- Nxt( n, SdWelcome( "Step 1 of 5", t ) );
-
- elseif n = 2 then
- t =
- "Please read this License Agreement.";
- Nxt( n, SdLicense( "Step 2 of 5", t, "Do you accept these terms?", SUPPORTDIR ^ "Ilicense.txt") );
-
- elseif n = 3 then
- SetAskTitle( "Step 3 of 5" );
- Nxt( n, DlgConnectionType () );
-
- elseif n = 4 then
- Nxt( n, SdSetupTypeEx( "Step 4 of 5", "", "", svSetupType, 0 ) );
-
- elseif n = 5 then
- SelComponents();
- SelItemT( "Acroread" );
- SelItemT( "Winzip" );
- if svSetupType = "Explorer" then
- SelItemT( "Internet Explorer" );
- n = n +1;;
- elseif svSetupType = "Netscape" then
- SelItemT( "Netscape" );
- n = n +1;
- else
- SelItemT( "Internet Explorer" );
- Nxt( n, SdComponentDialog2( "Custom", "", TARGETDIR, "" ) );
- endif;
-
- elseif n = 6 then
- t =
- "Setup will install the "+ Z_OurPN +
- " in the following folder." +
- "\n\n" +
- "To install to this folder, click Next." +
- "\n\n" +
- "To install to a different folder click Browse"+
- " and select another folder." +
- "\n\n" +
- "You can choose not to install the " + Z_OurPN +
- " by clicking Cancel to exit Setup.";
- r = SdAskDestPath( "Step 5 of 5", t, INOUT TARGETDIR, 0 );
- if r = BACK then
- n = n - 1;
- if svSetupType != "Custom" then
- n = n - 1;
- endif;
- else
- n = n + 1;
- endif;
-
- endif;
-
- until n > 6;
- end;
-
-
- procedure OurProcessBeforeDataMove()
- NUMBER nResult;
- STRING FN, szAppPath;
- begin
- InstallationInfo( "University of Minnesota",
- Z_OurPN, Z_VERSION, Z_PRODUCT_KEY );
-
- FN = UNINST_LOGFILE_NAME;
- nResult = DeinstallStart( TARGETDIR, FN, Z_UNINST_KEY, 0 );
- if nResult < 0 then
- Warn( "UnInstaller setup failed to initialize. " +
- "You may not be able to uninstall this product." );
- endif;
- RegDBSetItem( REGDB_APPPATH, TARGETDIR );
- RegDBSetItem( REGDB_APPPATH_DEFAULT, TARGETDIR ^ Z_PRODUCT_KEY );
- RegDBSetItem( REGDB_UNINSTALL_NAME, Z_UNINST_DISPLAY_NAME );
- end;
-
-
-
- function OurMoveFileData()
- NUMBER nResult, nDisk;
- begin
- nDisk = 1;
- SetStatusWindow( 0, "" );
- Disable( DIALOGCACHE );
- Enable( STATUS );
- StatusUpdate( ON, 100 );
- nResult = ComponentMoveData( MEDIA, nDisk, 0 );
- OurHandleMoveDataError( nResult );
- Disable( STATUS );
- return nResult;
- end;
-
-
- function OurHandleMoveDataError( nResult )
- STRING szErrMsg, svComponent , svFileGroup , svFile;
- begin
- svFile = "";
- svComponent = "";
- svFileGroup = "";
- if nResult != 0 then
- ComponentError ( MEDIA , svComponent , svFileGroup , svFile , nResult );
- szErrMsg =
- "An error occurred during the move data process: %d\n\n" +
- "Component: " + svComponent + "\n" +
- "File Group: " + svFileGroup + "\n" +
- "File: " + svFile;
- SprintfBox( SEVERE, "", szErrMsg, nResult );
- abort;
- endif;
- return nResult;
- end;
-
-
- procedure Warn( Msg )
- begin
- MessageBox( Msg, WARNING );
- end;
-
- procedure NWarn( Msg, N )
- STRING S;
- begin
- NumToStr( S, N );
- MessageBox( Msg + " <" + S + ">", WARNING );
- end;
-
- procedure AbortM( Msg )
- begin
- Warn( Msg );
- abort;
- end;
-
-
- function VOK_0( V, Msg )
- begin
- if (V != 0) and (Msg != "") then
- NWarn( Msg, V );
- endif;
- return V = 0;
- end;
-
-
- function VOK_1 (V, Msg)
- begin
- if (V != 1) and (Msg != "") then
- Warn( Msg );
- endif;
- return V = 1;
- end;
-
- function IsSys( N )
- NUMBER nvResult;
- STRING svResult;
- begin
- GetSystemInfo( OS, nvResult, svResult );
- return nvResult = N;
- end;
-
-
- procedure SetAskTitle( S )
- begin
- VOK_0( SetDialogTitle( DLG_ASK_OPTIONS, S ), "SetAskTitle Error" );
- end;
-
-
- //
- // Registry procedures
- //
-
- function SetDefaultRoot()
- begin
- return VOK_0( RegDBSetDefaultRoot( HKEY_LOCAL_MACHINE ),
- "SetDefaultRoot Error." );
- end;
-
-
-
- procedure DBSet_STRING( bv, S1, S2, S3 )
- begin
- if bv then
- bv = VOK_0( RegDBSetKeyValueEx( S1, S2, REGDB_STRING, S3, -1 ),
- "DBSet_STRING Error " + S2 );
- endif;
- end;
-
-
-
- procedure DBSet_BINARY( bv, S1, S2, S3 )
- begin
- if bv then
- bv = VOK_0( RegDBSetKeyValueEx( S1, S2, REGDB_BINARY, S3, 4 ),
- "DBSet_BINARY Error " + S2 );
- endif;
- end;
-
-
- function KeyExists( szKey )
- BOOL IsOK;
- begin
- IsOK = SetDefaultRoot();
- if IsOK then
- IsOK = VOK_1( RegDBKeyExist( szKey ), "" );
- endif;
- return( IsOK );
- end;
-
-
-
- function TCPIPInstalled()
- begin
- #ifdef ForceError_TCPIPInstalled
- return FALSE;
- #else
- if IsNT () then
- return TRUE;
- else
- return KeyExists( "\\Enum\\Network\\MSTCP" );
- endif;
- #endif
- end;
-
-
-
-
- //
- // MEDIA procedures
- //
-
- function CSelected( S )
- begin
- return ComponentIsItemSelected( MEDIA, S );
- end;
-
- procedure SelItemT( S )
- begin
- VOK_0( ComponentSelectItem( MEDIA, S, TRUE ),
- "SelItemT error " + S );
- end;
-
- procedure SelItemF( S )
- begin
- VOK_0( ComponentSelectItem( MEDIA, S, FALSE ),
- "SelItemF error " + S );
- end;
-
- procedure CSetVis ( S, IsVis )
- begin
- ComponentSetData ( MEDIA, S, COMPONENT_FIELD_VISIBLE, IsVis, "" );
- end;
-
-
-
-
- procedure CSetVisible_9x( S )
- begin
- CSetVis ( S, IsSys( IS_WINDOWS9X ) );
- end;
-
- procedure CSetVisible_NT( S )
- begin
- CSetVis ( S, IsNT() );
- end;
-
-
- function DialUpNetworkingInstalled()
- BOOL IsOK;
- string szKey, szNumValue;
- number nvNumber, nvType, nvSize;
- begin
- #ifdef ForceError_DialUpNetworkingInstalled
- return FALSE;
- #else
- szKey = "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\OptionalComponents\\RNA";
- IsOK = KeyExists( szKey );
- if IsOK then
- IsOK = VOK_0( RegDBGetKeyValueEx( szKey, "Installed", nvType, szNumValue, nvSize ), "" );
- if IsOK then
- StrToNum( nvNumber, szNumValue );
- IsOK = (nvNumber = 1);
- endif;
- endif;
- return IsOK;
- #endif
- end;
-
-
- procedure MakeBinaryString (S, b1,b2,b3,b4)
- begin
- SetByte( S, 0, b1 );
- SetByte( S, 1, b2 );
- SetByte( S, 2, b3 );
- SetByte( S, 3, b4 );
- end;
-
-
- function CreateModemConnectionIcon()
- number i, ModemReturn;
- string szDLL, szProgram, svString, ProgPath;
- BOOL bOK, FoundDLL;
- STRING szConName; // was global??
-
- begin
- szDLL = SUPPORTDIR ^ "WIKDLL.DLL";
- FoundDLL = VOK_0( UseDLL( szDLL ), "UseDLL error!" ); //***DLL START
- bOK = FoundDLL;
-
- if bOK then
- ModemReturn = WIKIsThereAModem( SUPPORTDIR ); //***DLL CALL
- bOK = (ModemReturn > 0);
-
- if bOK then
- ProgPath = PROGRAMFILES^ "\\Accessories\\";
- bOK = SetupConnection ( SUPPORTDIR, ProgPath, szConName );//***DLL CALL
- if not bOK then
- Warn( "SetupConnection Error" );
- endif;
- else
- if (ModemReturn = 0) then
- Abort_Missing( "Modem.hlp", "You must have a modem configured to continue." );
- else
- Abort_Missing( "Dialup.hlp", "You must install or reinstall Windows Dialup Networking." );
- endif;
- endif;
- endif;
-
- if bOK then
- bOK = SetDefaultRoot();
- endif;
-
- VOK_0( RegDBSetDefaultRoot( HKEY_CURRENT_USER), "SetDefaultRoot Error." );
-
- DBSet_STRING( bOK, "\\RemoteAccess", "Default", szConName );
- DBSet_STRING( bOK, "\\RemoteAccess", "InternetProfile", szConName );
-
- MakeBinaryString (svString, 0,0,0,0);
- DBSet_BINARY( bOK, "\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings",
- "ProxyEnable", svString);
- MakeBinaryString (svString, 1,0,0,0);
- DBSet_BINARY( bOK, "\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings",
- "EnableAutoDial", svString);
-
- MakeBinaryString (svString, 128,0,0,0);
- /*
- SetByte( svString, 0, 128 );
- for i = 1 to 3
- SetByte( svString, i, 0 );
- endfor;
- */
- DBSet_BINARY( bOK, "\\RemoteAccess", "wizard", svString );
-
- SetDefaultRoot();
-
-
- if FoundDLL then
- VOK_0( UnUseDLL( szDLL ), "UnUseDLL error!" ); //***DLL DONE
- endif;
- return bOK;
- end;
-
-
-
-
- procedure Setup_Network_TCPIP_Control_Panel()
- string szKey;
- BOOL b;
- begin
- return;
- // don't want to do anything.
-
- szKey = "\\System\\CurrentControlSet\\Services\\VxD\\MSTCP";
- b = KeyExists( szKey );
- if b then
- DBSet_STRING ( b, szKey, "EnableDNS", "1" );
- DBSet_STRING ( b, szKey, "HostName", "LocalHost" );
- DBSet_STRING ( b, szKey, "NameServer", "134.84.84.84,128.101.101.101" );
- DBSet_STRING ( b, szKey, "SearchList", "tc.umn.edu,umn.edu" );
- else
- Warn( "Error: Key MSTCP does not exist" );
- endif;
- end;
-
-
- procedure Setup_RunOnce ()
- string szKey;
- BOOL b;
- string ProgPath;
- begin
- b = TRUE;
- ProgPath = "WinHelp.exe " + TARGETDIR ^ "\\Docs\\ReadMe.hlp";
- VOK_0( RegDBSetDefaultRoot( HKEY_CURRENT_USER), "SetDefaultRoot Error." );
- szKey = "\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce";
- DBSet_STRING ( b, szKey, "InternetKit", ProgPath );
- SetDefaultRoot ();
- end;
-
-
- procedure SelComponents()
- begin
- CSetVisible_9x ( "F-Prot Win9x" );
- CSetVisible_NT ( "F-Prot NT" );
-
- CSetVis ( "Scripting 9X", FALSE );
- CSetVis ( "Scripting NT", FALSE );
-
- SelItemF( "Internet Explorer" );
- SelItemF( "Netscape" );
- SelItemF( "Acroread" );
- SelItemF( "Ftp" );
- SelItemF( "Winzip" );
- SelItemF( "Irc" );
- SelItemF( "Palace" );
- SelItemF( "Labpop" );
- SelItemF( "Telnet" );
- SelItemF( "TN3270" );
- SelItemF( "Scripting 9X" );
- SelItemF( "Scripting NT" );
-
- SelItemF( "F-Prot Win9x" );
- SelItemF( "F-Prot NT" );
-
- if IsSys( IS_WINDOWS9X ) then
- SelItemT( "Help Files" );
- else
- SelItemF( "Help Files NT" );
- endif;
-
- if ModemConn then
- if IsNT() then
- SelItemT( "Scripting NT" );
- else //Win98 or later
- SelItemT( "Scripting 9X" );
- endif;
- endif;
- end;
-
-
-
- procedure LaunchHelp( FN )
- string P;
- begin
- P = FN;
- LongPathToQuote( P, TRUE );
- return LaunchApp( "winhlp32.exe", P );
- end;
-
-
- procedure Abort_Missing( Filename, Msg )
- NUMBER bOpt1, bOpt2, nResult;
- begin
- bOpt1 = TRUE;
-
- bOpt2 = FALSE;
-
- SdFinish
- (" ", "Error!\n\n" +
- "Setup is unable to continue.\n\n" + Msg + "\n\n" +
- "Please see the Help File and then re-run this setup program.",
- "Click Finish to exit Setup.",
- "Yes, I want to view HELP now.", "", bOpt1, bOpt2 );
-
- /*
- bOpt1 = FALSE;
- SdFinish
- (" ", "Error!\n\n" +
- "Setup is unable to continue.\n\n" + Msg + "\n\n" +
- "Please read the instructions file and then re-run this setup program.",
- "Click Finish to exit Setup.", "", "", bOpt1, bOpt2 );
- */
-
- if bOpt1 then
- nResult = LaunchHelp( TARGETDIR^ "\\Docs\\" + Filename );
- endif;
- abort;
- end;
-
-
-
- function DlgConnectionType()
- number nResult;
- BOOL b2;
- begin
- if IsSys( IS_WINDOWS9X ) then
- b2 = not ModemConn;
- nResult = AskOptions(
- EXCLUSIVE,
- "Select the way you want to connect to the Internet.",
- "Modem (PPP)", ModemConn,
- "Direct Connection (Ethernet)", b2 );
- else
- nResult = NEXT;
- ModemConn = TRUE;
- endif;
- return nResult;
- end;
-
-
- procedure CallInstallerWait ( sPath, sSetup, ErrMsg )
- string ToLaunch;
- number nWnd;
- begin
- nWnd = GetWindowHandle( HWND_INSTALL );
- if nWnd < 0 then
- Warn( "GetWindowHandle error");
- else
- SendMessage( nWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0 );
- Delay( 1 );
- ToLaunch = SRCDIR ^ "\\Installs\\" + sPath + "\\" + sSetup;
- if LaunchAppAndWait( ToLaunch, "", WAIT ) < 0 then
- MessageBox( "Unable to install " + ErrMsg, SEVERE );
- else
- SendMessage( nWnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0 );
- endif;
- endif;
- end;
-
-
- procedure CallInstallerNoWait ( sPath, sSetup, ErrMsg )
- string ToLaunch;
- number nWnd;
- number WaitStat;
- begin
- nWnd = GetWindowHandle( HWND_INSTALL );
- if nWnd < 0 then
- Warn( "GetWindowHandle error");
- else
- ToLaunch = SRCDIR ^ "\\Installs\\" + sPath + "\\" + sSetup;
- if LaunchAppAndWait( ToLaunch, "", WaitStat ) < 0 then
- MessageBox( "Unable to install " + ErrMsg, SEVERE );
- endif;
- endif;
- end;
-
-
- procedure InstallComponents()
- begin
- VarSave ( SRCTARGETDIR );
-
- TARGETDIR = TARGETDIR ^ "\\Docs";
-
- SRCDIR = TARGETDIR;
- RenameFile ("TCP_ppp2.hlp","TCP_ppp.hlp");
- RenameFile ("TCP_lan2.hlp","TCP_lan.hlp");
- RenameFile ("DialUp2.hlp" ,"DialUp.hlp");
- RenameFile ("Modem2.hlp" ,"Modem.hlp");
-
-
- VarRestore ( SRCTARGETDIR );
-
-
- if not TCPIPInstalled() then
- if ModemConn then
- Abort_Missing( "TCP_ppp.hlp", "Windows TCP networking is not installed" );
- else
- Abort_Missing( "TCP_lan.hlp", "Windows TCP networking is not installed" );
- endif;
- endif;
-
-
-
- if CSelected( "Scripting 9X" ) then
- if DialUpNetworkingInstalled() then
- CreateModemConnectionIcon();
- else
- Abort_Missing ("DialUp.hlp", "Dial-up Networking is not installed");
- endif;
- else
- Setup_Network_TCPIP_Control_Panel();
- endif;
-
-
-
- Setup_RunOnce ();
-
- if CSelected( "Acroread") then
- CallInstallerWait( "Acroread", "ar40eng.exe", "Acrobat Reader" );
- endif;
-
- if CSelected( "Palace") then
- CallInstallerWait( "Palace", "setup.exe", "Palace" );
- endif;
-
- if CSelected( "F-Prot Win9x") then
- CallInstallerWait( "F-Prot\\Win9x", "F95xProt.exe", "Command Anti-Virus Software" );
- endif;
-
- if CSelected( "F-Prot NT") then
- CallInstallerWait( "F-Prot\\WinNT", "FwkxProt.exe", "Command Anti-Virus Software" );
- endif;
-
- OurCleanUpInstall();
-
- if CSelected( C_IE ) then
- if CSelected( C_NS ) then
- CallInstallerWait( "MSIE", "ie5setup.exe", "Internet Explorer" );
- else
- CallInstallerNoWait ( "MSIE", "ie5setup.exe", "Internet Explorer" );
- endif;
- endif;
-
- if CSelected( C_NS ) then
- CallInstallerNoWait( "Netscape", "cc32e46.exe", "Netscape Communicator" );
- endif;
- end;
-
-
-
- procedure OurCleanUpInstall()
- NUMBER bOpt1, bOpt2;
- string S;
- begin
- bOpt1 = FALSE;
- bOpt2 = FALSE;
- S = " When you click on Finish, ";
- if CSelected( C_IE ) then
- if CSelected( C_NS ) then
- S = S + "Internet Explorer and Netscape will install.";
- else
- S = S + "Internet Explorer will install.";
- endif;
- elseif CSelected( C_NS ) then
- S = S + "Netscape will install.";
- else
- S = "";
- endif;
- DeleteDir( TARGETDIR ^ "temp", ALLCONTENTS );
- SdFinish( "Done",
- "You have successfully completed the setup of the Windows " +
- Z_OurPN + "." + S, "", "", "", bOpt1, bOpt2 );
- end;
-
-
-
-
-
-
-
-